package com.gama.pay.alipay.controller.rest;

import com.gama.pay.alipay.config.RestConstants;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;

@Path("/pay")
@Consumes(RestConstants.DEFAULT_CONTENT_TYPE)
@Produces(RestConstants.DEFAULT_CONTENT_TYPE)
public interface AlipayTradeCreateController {
    /**
     * 通过URL访问： http://127.0.0.1:8080/alipay/pay/alipayTradeCreate?out_trade_no=xx&scene=xx&auth_code=xx&subject=xx
     *
     * @param request
     * @return
     * @throws Exception
     */
    @GET
    @Path("/alipayTradeCreate")
    Object alipayTradeCreate(@Context HttpServletRequest request) throws Exception;
}
